package com.bdqn.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.bdqn.service.ServiceYearService;

@Controller
@RequestMapping("/serviceYear")
public class serviceYearController {

	@Autowired
	private ServiceYearService serviceYearService;
	
	@RequestMapping("/year")
	@ResponseBody
	public int maxYear() {
		
		int num = serviceYearService.maxYear();
		
		return num;
		
	}
}
